package pers.vic.base.vo;

import java.util.HashMap;

public class HashMapExtend extends HashMap<Integer, String>{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	/**
	 * map--> {"k1:v1", "k2:v2"}
	 * @return
	 */
	public String[] keyValueDesc() {
		int size = this.size();
		String[] arrays = new String[size];
		int i = 0;
		for(Entry<Integer, String> entry : this.entrySet()) {
			Integer key = entry.getKey();
			String value = entry.getValue();
			arrays[i] = key + ":" + value;
			i++;
		}
		return arrays;
	}

}